import Request from "@/utils/request.js";

export function menu() {
    return Request({
        url:"/api/sysMenu/menu",
        method: "GET",
    })
}

export function getList(){
    return Request({
        url:"/api/sysMenu",
        method: "GET"
    })
}

export function getRoleMenuList(id){
    return Request({
        url:"/api/sysMenu/"+id,
        method: "GET"
    })
}
export function changeRoelMenu(ids){
    return Request({
        url:"/api/sysMenu/roelMenu",
        method: "put",
        data: ids,
        headers: {'Content-Type': 'application/json'},
    })
}



export function remove(id){
    return Request({
        url:"/api/sysMenu/"+id,
        method: "DELETE"
    })
}
